home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / rjs.lha / RJS / String / src / makefile < prev    next >
Encoding:
Makefile  |  1991-06-14  |  1.2 KB  |  75 lines

  1. #
  2. #
  3. #
  4.  
  5. CC=CC
  6. YFLAGS = -d
  7. .SUFFIXES: .o .c .y .l .s .C
  8.  
  9. #
  10. # C++ rules
  11. #
  12. .C.o:
  13.     $(CC) $(CFLAGS) -c $*.C
  14.  
  15. .C.a:
  16.     $(CC) -c $(CFLAGS) $<
  17.     ar rv $@ $*.o
  18.     rm -f $*.o
  19.  
  20. RJSROOT=../..
  21. RJSDIR=$(RJSROOT)/RJS
  22. CFLAGS = -I$(RJSROOT)
  23.  
  24. SLIB=$(RJSDIR)/$(MACHINE)/libString.a
  25.  
  26. .PRECIOUS: $(SLIB)
  27.  
  28. $(SLIB)    :    $(SLIB)(String.o) \
  29.         $(SLIB)(StringScan.o) \
  30.         $(SLIB)(StringSearch.o) \
  31.         $(SLIB)(after.o) \
  32.         $(SLIB)(at.o) \
  33.         $(SLIB)(before.o) \
  34.         $(SLIB)(constructor.o) \
  35.         $(SLIB)(except.o) \
  36.         $(SLIB)(find.o) \
  37.         $(SLIB)(from.o) \
  38.         $(SLIB)(io.o) \
  39.         $(SLIB)(lower.o) \
  40.         $(SLIB)(match.o) \
  41.         $(SLIB)(moveto.o) \
  42.         $(SLIB)(op_bracket.o) \
  43.         $(SLIB)(op_div.o) \
  44.         $(SLIB)(op_divequal.o) \
  45.         $(SLIB)(op_equal.o) \
  46.         $(SLIB)(op_minus.o) \
  47.         $(SLIB)(op_minusequal.o) \
  48.         $(SLIB)(op_mult.o) \
  49.         $(SLIB)(op_multequal.o) \
  50.         $(SLIB)(op_paren.o) \
  51.         $(SLIB)(op_plus.o) \
  52.         $(SLIB)(pad.o) \
  53.         $(SLIB)(pos.o) \
  54.         $(SLIB)(replace.o) \
  55.         $(SLIB)(reverse.o) \
  56.         $(SLIB)(skip.o) \
  57.         $(SLIB)(split.o) \
  58.         $(SLIB)(substr.o) \
  59.         $(SLIB)(table.o) \
  60.         $(SLIB)(through.o) \
  61.         $(SLIB)(trim.o) \
  62.         $(SLIB)(trunc.o) \
  63.         $(SLIB)(upper.o) \
  64.         $(RJSDIR)/String.h
  65.     ranlib $(SLIB)
  66.  
  67. $(RJSDIR)/String.h : String.h
  68.     cp String.h $(RJSDIR)
  69.  
  70. clean : 
  71.     rm -f *.o $(SLIB) core
  72.  
  73. tar:
  74.     tar cf stringlib.tar *.C *.h makefile 
  75.